//
//  SXTAFNetworkingClient.h
//  
//
//  Created by ma c on 16/8/20.
//
//

#import <UIKit/UIKit.h>
#import <AFNetworking/AFNetworking.h>
typedef void(^requestSuccessBlock)(id responseObject);
typedef void(^requestErrorBlock)(NSError * error);

@interface SXTAFNetworkingClient : AFHTTPSessionManager

+ (void)POSTRequest:(NSString * )url
              param:(NSDictionary *)param
          isSuccess:(requestErrorBlock)returnSuccess
            isError:(requestErrorBlock)returnError;

+ (void)GETRequest:(NSString * )url
              param:(NSDictionary *)param
          isSuccess:(requestErrorBlock)returnSuccess
            isError:(requestErrorBlock)returnError;
@end
